package cn.evolution.retryutils.controller;

import cn.evolution.retryutils.service.impl.RetryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author evolution
 * @title: RetryTestController
 * @projectName retry-utils
 * @description: TODO
 * @date 2022-11-17 15:07
 */
@RestController
@RequestMapping("/test")
public class RetryTestController {
    @Autowired
    private RetryServiceImpl retryService;
    
    @GetMapping("/01")
    public String retryError(){
     return  retryService.retryError();
    }
}
